<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_platform_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_platform_id" data-rule="required" data-source="pay/platform/index" class="form-control selectpage" name="row[pay_platform_id]" type="text" value="{$row.pay_platform_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Merchant_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-merchant_no" class="form-control" name="row[merchant_no]" type="text" value="{$row.merchant_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verifycode')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verifycode" class="form-control" name="row[verifycode]" type="text" value="{$row.verifycode|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Platform_lists_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-platform_lists_id" data-rule="required" data-source="platform/lists/index" class="form-control selectpage" name="row[platform_lists_id]" type="text" value="{$row.platform_lists_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paytype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-paytype" class="form-control selectpicker" multiple="" name="row[paytype][]">
                {foreach name="paytypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.paytype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appid" class="form-control" name="row[appid]" type="text" value="{$row.appid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appsecret')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appsecret" class="form-control" name="row[appsecret]" type="text" value="{$row.appsecret|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Codetype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-codetype" class="form-control selectpicker" name="row[codetype]">
                {foreach name="codetypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.codetype"}selected{/in}>
                {if $key == 0}
                通用
                {elseif $key == 1}
                定向
                {else}
                {$vo}
                {/if}
                </option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isarea')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-isarea" class="form-control selectpicker" name="row[isarea]">
                {foreach name="isareaList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.isarea"}selected{/in}>
                {$vo}
                </option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
